<?php include "../public/header.php";?>
<?php include "../public/header_show.php";?>
<style>
    .danbut{border: 1px solid #eee;padding: 0 20px 10px}
    .danbut button{margin-top: 10px;margin-right:10px;background-color: #FFFFFF;color: #777;border: 1px solid #ccc}
    .danbut button:hover{background-color: #2272eb;color: #FFFFFF;border: 1px solid #2272eb}
    .danbut button.active{background-color: #2272eb;color: #FFFFFF;border: 1px solid #2272eb}
    .relss{border: 1px solid #eee;}
    .tabfenge{height: 30px;border-top: 1px solid #eee;border-bottom: 1px solid #eee}
    .layui-laypage-default{float: right}
</style>
<body id="xiangqingPage">
<div id="xiangqingBox">
    <div class="page-title">
        <div class="page-title-con">
            <span class="pageshowtitle">详情</span>
            <div class="page-title-opt-list">
                <?php include "../public_flow/flow_show_optbut.php";?>
                <button class="layui-btn layui-btn-sm btn-light marginr5 opt">
                    操作<i class="layui-icon layui-icon-down layui-font-12"></i>
                </button>
                <span id="page-close" class="page-close" onclick="layer_close()">×</span>
            </div>
        </div>
    </div>
    <div class="main-container">
        <div class="tongbox tongbox5">
            <div class="tuo">
                <div class="tit">项目名称</div>
                <div class="con" id="tong_name"></div>
            </div>
            <div class="tuo">
                <div class="tit">建设单位</div>
                <div class="con" id="tong_jian_unit"></div>
            </div>
            <div class="tuo">
                <div class="tit">项目属性</div>
                <div class="con" id="tong_business_name"></div>
            </div>
            <div class="tuo">
                <div class="tit">工程造价(万元)</div>
                <div class="con" id="tong_expectfee"></div>
            </div>
            <div class="tuo">
                <div class="tit">施工合同金额(元)</div>
                <div class="con colorlan" id="tong_shi_money"></div>
            </div>
        </div>
        <div class="danbut" id="danbut">
            <button class="layui-btn layui-btn-sm active" key="engin" type="button">项目概况</button>
            <button class="layui-btn layui-btn-sm" key="contract_shi_show" type="button">施工合同</button>
            <button class="layui-btn layui-btn-sm" key="engin_budget_show" type="button">成本预算</button>
            <button class="layui-btn layui-btn-sm" key="jindu" type="button">进度</button>
            <button class="layui-btn layui-btn-sm" key="piao" type="button">发票</button>
            <button class="layui-btn layui-btn-sm" key="shoufukuan" type="button">收付款</button>
            <button class="layui-btn layui-btn-sm" key="stuff" type="button">材料</button>
            <button class="layui-btn layui-btn-sm" key="labour" type="button">劳务</button>
            <button class="layui-btn layui-btn-sm" key="device" type="button">租赁</button>
            <button class="layui-btn layui-btn-sm" key="subbao" type="button">分包</button>
            <button class="layui-btn layui-btn-sm" key="zhian" type="button">质安</button>
            <button class="layui-btn layui-btn-sm" key="stamp" type="button">盖章资料</button>
            <button class="layui-btn layui-btn-sm" key="bond" type="button">保证金</button>
            <button class="layui-btn layui-btn-sm layui-hide" key="contract_nei" type="button">内包</button>
        </div>


        <div class="relss rel_info_engin">
            <div class="table-box tablenes">
                <div class="title">基本信息</div>
                <table class="layui-table">
                    <tbody>
                    <tr><td class="tt">项目名称</td><td class="tv" id="name"></td><td class="tt">项目编号</td><td class="tv" id="number"></td></tr>

                    <tr><td class="tt">项目属性</td><td class="tv" id="business_name"></td><td class="tt">项目类型</td><td class="tv" id="engintype"></td></tr>
                    <tr id="lian_unitdiv" class="layui-hide"><td class="tt">联营方</td><td class="tv" id="lian_unit" colspan="3"></td></tr>
                    <tr><td class="tt">建设单位</td><td class="tv" id="jian_unit"></td><td class="tt">所属单位</td><td class="tv" id="chanid_name"></td></tr>
                    <tr><td class="tt">所在地</td><td class="tv" id="areas"></td><td class="tt">详细地址</td><td class="tv" id="addr"></td></tr>
                    <tr><td class="tt">工程造价(万元)</td><td class="tv" id="expectfee"></td><td class="tt">工期(天)</td><td class="tv" id="duration"></td></tr>
                    <tr><td class="tt">计划开工日期</td><td class="tv" id="startdt"></td><td class="tt">计划竣工日期</td><td class="tv" id="enddt"></td></tr>
                    <tr><td class="tt">招标方式</td><td class="tv" id="zhaotype"></td><td class="tt">项目状态</td><td class="tv" id="state_name"></td></tr>
                    <tr><td class="tt">项目负责人</td><td class="tv" id="man_xiang_name" colspan="3"></td></tr>
                    <tr id="actualdtDiv" class="layui-hide"><td class="tt">实际开工日期</td><td class="tv" id="actualdt" colspan="3"></td></tr>
                    <tr id="filishdtDiv" class="layui-hide"><td class="tt">竣工验收日期</td><td class="tv" id="filishdt" colspan="3"></td></tr>

                    <tr><td class="tt">备注</td><td class="tv" id="explain" colspan="3"></td></tr>
                    </tbody>
                </table>
            </div>
            <div><?php include "../public/upinfo_show.php";?></div>
            <div><?php include "../public_flow/flow_show_flowrelas.php";?></div>
            <div><?php include "../public_flow/flow_show_info.php";?></div>
            <div><?php include '../public_flow/flow_show_shenlog.php'?></div>
            <div><?php include '../public_flow/flow_show_talk.php'?></div>
            <div><?php include '../public/opt_browse.php'?></div>
        </div>

        <div class="relss layui-hide rel_info_contract_shi_show">
            <iframe src="" frameborder="0" style="width: 100%;height: 550px"></iframe>
        </div>

        <div class="relss layui-hide rel_info_engin_budget_show">
            <iframe src="" frameborder="0" style="width: 100%;height: 550px"></iframe>
        </div>

        <div class="relss layui-hide rel_info_jindu">
            <div class="table-box tablenes">
                <div class="layui-col-md6" style="width: calc(50% - 10px);border: 1px solid #eee;">
                    <script type="text/html" id="toolbarDemo_speed_zong"><b>总进度计划</b></script>
                    <table id="datalist_speed_zong" lay-filter="datalist_speed_zong"></table>
                    <div class="tabfenge"></div>
                    <script type="text/html" id="toolbarDemo_engin_diary"><b>施工日志</b></script>
                    <table id="datalist_engin_diary" lay-filter="datalist_engin_diary"></table>
                    <div class="tabfenge"></div>
                    <script type="text/html" id="toolbarDemo_engin_chan"><b>产值填报</b></script>
                    <table id="datalist_engin_chan" lay-filter="datalist_engin_chan"></table>
                </div>
                <div class="layui-col-md6" style="width: calc(50% - 10px);border: 1px solid #eee;margin-left: 20px">
                    <script type="text/html" id="toolbarDemo_speed_month"><b>月进度计划</b></script>
                    <table id="datalist_speed_month" lay-filter="datalist_speed_month"></table>
                    <div class="tabfenge"></div>
                    <script type="text/html" id="toolbarDemo_engin_speed"><b>进度填报</b></script>
                    <table id="datalist_engin_speed" lay-filter="datalist_engin_speed"></table>
                    <div class="tabfenge"></div>
                    <script type="text/html" id="toolbarDemo_visa"><b>签证单</b></script>
                    <table id="datalist_visa" lay-filter="datalist_visa"></table>
                </div>

                <div style="clear: both"></div>
                <div class="tabfenge"></div>
                <div class="layui-col-md12" style="border: 1px solid #eee;">
                    <script type="text/html" id="toolbarDemo_speed_jinhui"><b>项目进度汇总</b></script>
                    <table id="datalist_speed_jinhui" lay-filter="datalist_speed_jinhui"></table>
                </div>
            </div>
            <div style="clear: both"></div>
        </div>

        <div class="relss layui-hide rel_info_piao">
            <div class="table-box tablenes">
                <div style="clear: both"></div>
                <div class="layui-col-md12" style="border: 1px solid #eee;">
                    <script type="text/html" id="toolbarDemo_piao_kai"><b>开票</b></script>
                    <table id="datalist_piao_kai" lay-filter="datalist_piao_kai"></table>
                </div>
                <div style="clear: both"></div>
                <div class="tabfenge"></div>
                <div class="layui-col-md12" style="border: 1px solid #eee;">
                    <script type="text/html" id="toolbarDemo_piao_shou"><b>收票</b></script>
                    <table id="datalist_piao_shou" lay-filter="datalist_piao_shou"></table>
                </div>
            </div>
            <div style="clear: both"></div>
        </div>

        <div class="relss layui-hide rel_info_shoufukuan">
            <div class="table-box tablenes">
                <div style="clear: both"></div>
                <div class="layui-col-md12" style="border: 1px solid #eee;">
                    <script type="text/html" id="toolbarDemo_income_engin"><b>项目收款</b></script>
                    <table id="datalist_income_engin" lay-filter="datalist_income_engin"></table>
                </div>
                <div style="clear: both"></div>
                <div class="tabfenge"></div>
                <div class="layui-col-md12" style="border: 1px solid #eee;">
                    <script type="text/html" id="toolbarDemo_payment_engin"><b>项目付款</b></script>
                    <table id="datalist_payment_engin" lay-filter="datalist_payment_engin"></table>
                </div>
            </div>
            <div style="clear: both"></div>
        </div>

        <div class="relss layui-hide rel_info_stuff">
            <div class="table-box tablenes">
                <div class="layui-col-md6" style="width: calc(50% - 10px);border: 1px solid #eee;">
                    <script type="text/html" id="toolbarDemo_contract_cai_1"><b>材料合同</b></script>
                    <table id="datalist_contract_cai_1" lay-filter="datalist_contract_cai_1"></table>
                    <div class="tabfenge"></div>
                    <script type="text/html" id="toolbarDemo_stuff_ru"><b>入库单</b></script>
                    <table id="datalist_stuff_ru" lay-filter="datalist_stuff_ru"></table>
                </div>
                <div class="layui-col-md6" style="width: calc(50% - 10px);border: 1px solid #eee;margin-left: 20px">
                    <script type="text/html" id="toolbarDemo_stuff_cai"><b>采购单</b></script>
                    <table id="datalist_stuff_cai" lay-filter="datalist_stuff_cai"></table>
                    <div class="tabfenge"></div>
                    <script type="text/html" id="toolbarDemo_stuff_jie"><b>结算单</b></script>
                    <table id="datalist_stuff_jie" lay-filter="datalist_stuff_jie"></table>
                </div>

                <div style="clear: both"></div>
                <div class="tabfenge"></div>
                <div class="layui-col-md12" style="border: 1px solid #eee;">
                    <script type="text/html" id="toolbarDemo_stuff_ku"><b>材料库存统计</b></script>
                    <table id="datalist_stuff_ku" lay-filter="datalist_stuff_ku"></table>
                </div>
            </div>
            <div style="clear: both"></div>
        </div>

        <div class="relss layui-hide rel_info_labour">
            <div class="table-box tablenes">
                <div class="layui-col-md6" style="width: calc(50% - 10px);border: 1px solid #eee;">
                    <script type="text/html" id="toolbarDemo_contract_cai_2"><b>劳务合同</b></script>
                    <table id="datalist_contract_cai_2" lay-filter="datalist_contract_cai_2"></table>
                    <div class="tabfenge"></div>
                    <script type="text/html" id="toolbarDemo_labour_ling"><b>零星劳务单</b></script>
                    <table id="datalist_labour_ling" lay-filter="datalist_labour_ling"></table>
                </div>
                <div class="layui-col-md6" style="width: calc(50% - 10px);border: 1px solid #eee;margin-left: 20px">
                    <script type="text/html" id="toolbarDemo_labour_shen"><b>进度款申报</b></script>
                    <table id="datalist_labour_shen" lay-filter="datalist_labour_shen"></table>
                    <div class="tabfenge"></div>
                    <script type="text/html" id="toolbarDemo_labour_jie"><b>完工结算</b></script>
                    <table id="datalist_labour_jie" lay-filter="datalist_labour_jie"></table>
                </div>
            </div>
            <div style="clear: both"></div>
        </div>

        <div class="relss layui-hide rel_info_device">
            <div class="table-box tablenes">
                <div class="layui-col-md6" style="width: calc(50% - 10px);border: 1px solid #eee;">
                    <script type="text/html" id="toolbarDemo_contract_cai_3"><b>租赁合同</b></script>
                    <table id="datalist_contract_cai_3" lay-filter="datalist_contract_cai_3"></table>
                    <div class="tabfenge"></div>
                    <script type="text/html" id="toolbarDemo_device_jie"><b>租赁结算</b></script>
                    <table id="datalist_device_jie" lay-filter="datalist_device_jie"></table>
                </div>
                <div class="layui-col-md6" style="width: calc(50% - 10px);border: 1px solid #eee;margin-left: 20px">
                    <script type="text/html" id="toolbarDemo_device_jin"><b>进场登记</b></script>
                    <table id="datalist_device_jin" lay-filter="datalist_device_jin"></table>
                    <div class="tabfenge"></div>
                    <script type="text/html" id="toolbarDemo_device_lin"><b>临时机械登记</b></script>
                    <table id="datalist_device_lin" lay-filter="datalist_device_lin"></table>
                </div>
            </div>
            <div style="clear: both"></div>
        </div>

        <div class="relss layui-hide rel_info_subbao">
            <div class="table-box tablenes">
                <div class="layui-col-md6" style="width: calc(50% - 10px);border: 1px solid #eee;">
                    <script type="text/html" id="toolbarDemo_contract_cai_4"><b>分包合同</b></script>
                    <table id="datalist_contract_cai_4" lay-filter="datalist_contract_cai_4"></table>
                </div>
                <div class="layui-col-md6" style="width: calc(50% - 10px);border: 1px solid #eee;margin-left: 20px">
                    <script type="text/html" id="toolbarDemo_subbao_shen"><b>进度款申报</b></script>
                    <table id="datalist_subbao_shen" lay-filter="datalist_subbao_shen"></table>
                </div>
                <div style="clear: both"></div>
                <div class="tabfenge"></div>
                <div class="layui-col-md12" style="border: 1px solid #eee;">
                    <script type="text/html" id="toolbarDemo_subbao_jie"><b>完工结算</b></script>
                    <table id="datalist_subbao_jie" lay-filter="datalist_subbao_jie"></table>
                </div>
            </div>
            <div style="clear: both"></div>
        </div>

        <div class="relss layui-hide rel_info_zhian">
            <div class="table-box tablenes">
                <div style="clear: both"></div>
                <div class="layui-col-md12" style="border: 1px solid #eee;">
                    <script type="text/html" id="toolbarDemo_engin_xun"><b>巡检报告</b></script>
                    <table id="datalist_engin_xun" lay-filter="datalist_engin_xun"></table>
                </div>
                <div style="clear: both"></div>
                <div class="tabfenge"></div>
                <div class="layui-col-md12" style="border: 1px solid #eee;">
                    <script type="text/html" id="toolbarDemo_engin_zheng"><b>整改通知</b></script>
                    <table id="datalist_engin_zheng" lay-filter="datalist_engin_zheng"></table>
                </div>
            </div>
            <div style="clear: both"></div>
        </div>

        <div class="relss layui-hide rel_info_stamp">
            <div class="table-box tablenes">
                <div style="clear: both"></div>
                <div class="layui-col-md12" style="border: 1px solid #eee;">
                    <script type="text/html" id="toolbarDemo_engin_stamp"><b>资料盖章</b></script>
                    <table id="datalist_engin_stamp" lay-filter="datalist_engin_stamp"></table>
                </div>
                <div style="clear: both"></div>
                <div class="tabfenge"></div>
                <div class="layui-col-md12" style="border: 1px solid #eee;">
                    <script type="text/html" id="toolbarDemo_engin_stamp_detail"><b>盖章资料明细</b></script>
                    <table id="datalist_engin_stamp_detail" lay-filter="datalist_engin_stamp_detail"></table>
                </div>
            </div>
            <div style="clear: both"></div>
        </div>

        <div class="relss layui-hide rel_info_bond">
            <div class="table-box tablenes">
                <div style="clear: both"></div>
                <div class="layui-col-md12" style="border: 1px solid #eee;">
                    <script type="text/html" id="toolbarDemo_engin_bond_jiao"><b>项目保证金缴纳</b></script>
                    <table id="datalist_engin_bond_jiao" lay-filter="datalist_engin_bond_jiao"></table>
                </div>
                <div style="clear: both"></div>
                <div class="tabfenge"></div>
                <div class="layui-col-md12" style="border: 1px solid #eee;">
                    <script type="text/html" id="toolbarDemo_engin_bond_kai"><b>保函开具</b></script>
                    <table id="datalist_engin_bond_kai" lay-filter="datalist_engin_bond_kai"></table>
                </div>
            </div>
            <div style="clear: both"></div>
        </div>

        <div class="relss layui-hide rel_info_contract_nei">
            <div class="table-box tablenes">
                <div style="clear: both"></div>
                <div class="layui-col-md12" style="border: 1px solid #eee;">
                    <script type="text/html" id="toolbarDemo_payment_neikou"><b>内包扣款</b></script>
                    <table id="datalist_payment_neikou" lay-filter="datalist_payment_neikou"></table>
                </div>
                <div style="clear: both"></div>
                <div class="tabfenge"></div>
                <div class="layui-col-md12" style="border: 1px solid #eee;">
                    <script type="text/html" id="toolbarDemo_payment_neifu"><b>内包付款</b></script>
                    <table id="datalist_payment_neifu" lay-filter="datalist_payment_neifu"></table>
                </div>
            </div>
            <div style="clear: both"></div>
        </div>
    </div>
</div>
<script>
    var param_enginid = getQueryVariable('enginid') || 0;





    var shiinfoid=0,budgetid=0;
    layui.use(['form', 'layer', "laytp",'element','dropdown','laypage','table','soulTable'], function() {
        var laypage = layui.laypage, table = layui.table, dropdown = layui.dropdown, form = layui.form, soulTable = layui.soulTable,element = layui.element;


        $("#danbut button").click(function () {
            $(this).addClass('active').siblings().removeClass('active');
            var key = $(this).attr('key');
            var funcname =  'rel_info_'+key;

            $(".relss").addClass('layui-hide');
            $("."+funcname).removeClass('layui-hide');
            eval(funcname+'()');
        });


        rel_info_engin();
        function rel_info_engin (){
            facade.ajax({url: ask_engin_show, data:{id: param_enginid}}).done(function(res){
                if (res.code === 2000) {
                    var data = res.data.data;

                    shiinfoid = data.shiinfoid;
                    budgetid = data.budgetid;

                    $("#tong_name").text(data.name);
                    $("#tong_jian_unit").text(data.jian_unit);
                    $("#tong_business_name").text(data.business_name);
                    $("#tong_expectfee").text(parseFormatNum(data.expectfee, 6));
                    $("#tong_shi_money").text(parseFormatNum(data.shi_money)).click(function () {
                        if(res.data.shiinfo){
                            openPage('../contract_shi/show.php?id='+res.data.shiinfo.id, '80%', '80%');
                        }
                    });

                    $("#name").text(data.name);
                    $("#number").text(data.number);
                    $("#business_name").text(data.business_name);
                    if(data.business == 2){
                        $("#lian_unitdiv").removeClass('layui-hide');
                        $("#lian_unit").text(data.lian_unit);
                        $("#danbut button[key='contract_nei']").removeClass('layui-hide');
                    }
                    $("#engintype").text(data.engintype);
                    $("#jian_unit").text(data.jian_unit);
                    $("#chanid_name").text(data.chanid_name);
                    $("#areas").text(data.areas);
                    $("#addr").text(data.addr);
                    $("#expectfee").text(data.expectfee);
                    $("#duration").text(data.duration);
                    $("#startdt").text(data.startdt);
                    $("#enddt").text(data.enddt);
                    $("#man_xiang_name").text(data.man_xiang_name);
                    $("#state_name").text(data.state_name);
                    $("#zhaotype").text(data.zhaotype);
                    $("#actualdt").text(data.actualdt);
                    $("#filishdt").text(data.filishdt);
                    $("#explain").text(data.explain);

                    if(data.state == 3){
                        $("#actualdtDiv").removeClass('layui-hide');
                    }
                    if(data.state == 6){
                        $("#actualdtDiv").removeClass('layui-hide');
                        $("#filishdtDiv").removeClass('layui-hide');
                    }




                    public_flow_show_display(res.data.billinfo);
                    public_upload_show_file('upload_files', res.data.files);
                    render_from();
                }
            });
            public_get_readsandlog('engin', param_enginid);
        }
        function rel_info_contract_shi_show (){
            if(!shiinfoid){
                return false;
            }
            $(".rel_info_contract_shi_show iframe").attr('src', '../contract_shi/show.php?isdan=1&id='+shiinfoid);
        }
        function rel_info_engin_budget_show (){
            if(!budgetid){
                return false;
            }
            $(".rel_info_engin_budget_show iframe").attr('src', '../engin_budget/show.php?isdan=1&id='+budgetid);
        }
        function rel_info_jindu (){
            var table_speed_zong = table.render({
                elem: "#datalist_speed_zong",url: facade.url(ask_speed_zong_list),where: {enginid:param_enginid}
                , toolbar: '#toolbarDemo_speed_zong', page: true,limit:15
                ,limit:TabInitShow.limit,soulSort: TabInitShow.soulSort,method: TabInitShow.method, overflow: TabInitShow.overflow
                ,defaultToolbar: ['','', '', ''],filter: TabInitShow.filter ,text: TabInitShow.text
                ,request: TabInitShow.request,response: TabInitShow.response,contextmenu:get_table_contextmenu(soulTable)
                ,parseData: function (res) {
                    return {
                        "code": res.code,
                        "msg": res.message,
                        "count": res.data.data.total,
                        "data": res.data.data.data
                    };
                }
                , cols: [[
                    {type:'numbers',title:'序号',fixed:'left'}
                    ,{field:'number',title:'总进度计划编号',templet: function(d){
                            return '<span class="colorlan" onclick="openPage(\'../speed_zong/show.php?id='+d.id+'\')">'+d.number+'</span>';
                        }}
                    ,{field: 'name', title: '进度计划名称'}
                    ,{field: 'startdt', title: '计划开始日期'}
                    ,{field: 'enddt', title: '计划结束日期'}
                    ,{field: 'chanfee', title: '计划总产值(元)'}
                    ,{field: 'wanchan', title: '开累完成产值(元)'}
                    ,{field: 'findt', title: '实际开工日期'}
                    ,{field:'wanbi',title:'产值完成比(%)',templet: function(d){
                            var str = '<div class="layui-progress layui-progress-big" lay-showPercent="yes" style="margin-top:10px">';
                            str += '<div class="layui-progress-bar" lay-percent="'+d.wanbi+'%"></div></div>';
                            return str;
                        }}
                    ,{field:'jinbi',title:'工期进度(%)',templet: function(d){
                            var str = '<div class="layui-progress layui-progress-big" lay-showPercent="yes" style="margin-top:10px">';
                            str += '<div class="layui-progress-bar" lay-percent="'+d.jinbi+'%"></div></div>';
                            return str;
                        }}
                    ,{field: 'baner', title: '编制人'}
                    ,{field: 'dt', title: '编制日期'}
                ]]
                , done: function (res) {
                    element.render();
                    soulTable.render(this);
                }
            });
            var table_engin_diary = table.render({
                elem: "#datalist_engin_diary",url: facade.url(ask_engin_diary_list),where: {enginid:param_enginid}
                , toolbar: '#toolbarDemo_engin_diary', page: true,limit:15
                ,limit:TabInitShow.limit,soulSort: TabInitShow.soulSort,method: TabInitShow.method, overflow: TabInitShow.overflow
                ,defaultToolbar: ['','', '', ''],filter: TabInitShow.filter ,text: TabInitShow.text
                ,request: TabInitShow.request,response: TabInitShow.response,contextmenu:get_table_contextmenu(soulTable)
                ,parseData: function (res) {
                    return {
                        "code": res.code,
                        "msg": res.message,
                        "count": res.data.data.total,
                        "data": res.data.data.data
                    };
                }
                , cols: [[
                    {type:'numbers',title:'序号',fixed:'left'}
                    ,{field:'dt',title:'日期',templet: function(d){
                            return '<span class="colorlan" onclick="openPage(\'../engin_diary/show.php?id='+d.id+'\')">'+d.dt+'</span>';
                        }}
                    ,{field: 'tian', title: '天气情况'}
                    ,{field: 'wen', title: '气温'}
                    ,{field: 'feng', title: '风力'}
                    ,{field: 'xianger', title: '项目负责人'}
                    ,{field: 'jier', title: '技术负责人'}
                    ,{field: 'tianer', title: '填报人'}
                ]]
                , done: function (res) {
                    soulTable.render(this);
                }
            });
            var table_engin_chan = table.render({
                elem: "#datalist_engin_chan",url: facade.url(ask_engin_chan_list),where: {enginid:param_enginid}
                , toolbar: '#toolbarDemo_engin_chan', page: true,limit:15,totalRow: true
                ,limit:TabInitShow.limit,soulSort: TabInitShow.soulSort,method: TabInitShow.method, overflow: TabInitShow.overflow
                ,defaultToolbar: ['','', '', ''],filter: TabInitShow.filter ,text: TabInitShow.text
                ,request: TabInitShow.request,response: TabInitShow.response,contextmenu:get_table_contextmenu(soulTable)
                ,parseData: function (res) {
                    return {
                        "code": res.code,
                        "msg": res.message,
                        "count": res.data.data.total,
                        "data": res.data.data.data
                    };
                }
                , cols: [[
                    {type:'numbers',title:'序号',totalRowText: '合计',fixed:'left'}
                    ,{field:'number',title:'产值填报单号',templet: function(d){
                            return '<span class="colorlan" onclick="openPage(\'../engin_chan/show.php?id='+d.id+'\')">'+d.number+'</span>';
                        }}
                    ,{field: 'name', title: '填报名称'}
                    ,{field: 'month', title: '填报月份'}
                    ,{field: 'benjin', title: '本期上报产值',totalRow: true}
                    ,{field: 'leijin', title: '本期审定产值',totalRow: true}
                ]]
                , done: function (res) {
                    soulTable.render(this);
                }
            });

            var table_speed_month = table.render({
                elem: "#datalist_speed_month",url: facade.url(ask_speed_month_list),where: {enginid:param_enginid}
                , toolbar: '#toolbarDemo_speed_month', page: true,limit:15
                ,limit:TabInitShow.limit,soulSort: TabInitShow.soulSort,method: TabInitShow.method, overflow: TabInitShow.overflow
                ,defaultToolbar: ['','', '', ''],filter: TabInitShow.filter ,text: TabInitShow.text
                ,request: TabInitShow.request,response: TabInitShow.response,contextmenu:get_table_contextmenu(soulTable)
                ,parseData: function (res) {
                    return {
                        "code": res.code,
                        "msg": res.message,
                        "count": res.data.data.total,
                        "data": res.data.data.data
                    };
                }
                , cols: [[
                    {type:'numbers',title:'序号',fixed:'left'}
                    ,{field:'number',title:'月计划编号',templet: function(d){
                            return '<span class="colorlan" onclick="openPage(\'../speed_month/show.php?id='+d.id+'\')">'+d.number+'</span>';
                        }}
                    ,{field: 'name', title: '月计划名称'}
                    ,{field: 'month', title: '计划月份'}
                    ,{field: 'baner', title: '编制人'}
                    ,{field: 'dt', title: '编制日期'}
                ]]
                , done: function (res) {
                    soulTable.render(this);
                }
            });
            var table_engin_speed = table.render({
                elem: "#datalist_engin_speed",url: facade.url(ask_engin_speed_list),where: {enginid:param_enginid}
                , toolbar: '#toolbarDemo_engin_speed', page: true,limit:15
                ,limit:TabInitShow.limit,soulSort: TabInitShow.soulSort,method: TabInitShow.method, overflow: TabInitShow.overflow
                ,defaultToolbar: ['','', '', ''],filter: TabInitShow.filter ,text: TabInitShow.text
                ,request: TabInitShow.request,response: TabInitShow.response,contextmenu:get_table_contextmenu(soulTable)
                ,parseData: function (res) {
                    return {
                        "code": res.code,
                        "msg": res.message,
                        "count": res.data.data.total,
                        "data": res.data.data.data
                    };
                }
                , cols: [[
                    {type:'numbers',title:'序号',fixed:'left'}
                    ,{field:'number',title:'进度填报单号',templet: function(d){
                            return '<span class="colorlan" onclick="openPage(\'../engin_speed/show.php?id='+d.id+'\')">'+d.number+'</span>';
                        }}
                    ,{field: 'name', title: '填报名称'}
                    ,{field: 'month', title: '填报月份'}
                ]]
                , done: function (res) {
                    soulTable.render(this);
                }
            });
            var table_visa = table.render({
                elem: "#datalist_visa",url: facade.url(ask_visa_list),where: {enginid:param_enginid}
                , toolbar: '#toolbarDemo_visa', page: true,limit:15,totalRow: true
                ,limit:TabInitShow.limit,soulSort: TabInitShow.soulSort,method: TabInitShow.method, overflow: TabInitShow.overflow
                ,defaultToolbar: ['','', '', ''],filter: TabInitShow.filter ,text: TabInitShow.text
                ,request: TabInitShow.request,response: TabInitShow.response,contextmenu:get_table_contextmenu(soulTable)
                ,parseData: function (res) {
                    return {
                        "code": res.code,
                        "msg": res.message,
                        "count": res.data.data.total,
                        "data": res.data.data.data
                    };
                }
                , cols: [[
                    {type:'numbers',title:'序号',totalRowText: '合计',fixed:'left'}
                    ,{field:'number',title:'签证单号',templet: function(d){
                            return '<span class="colorlan" onclick="openPage(\'../visa/show.php?id='+d.id+'\')">'+d.number+'</span>';
                        }}
                    ,{field: 'visatype', title: '签证类别'}
                    ,{field: 'shemoney', title: '涉及金额(元)',totalRow: true}
                    ,{field: 'dt', title: '签证日期'}
                    ,{field: 'flowuser', title: '填报人'}
                    ,{field: 'created_at', title: '填报日期'}
                ]]
                , done: function (res) {
                    soulTable.render(this);
                }
            });
            var table_speed_jinhui = table.render({
                elem: "#datalist_speed_jinhui",url: facade.url(ask_speed_jinhui_list),where: {enginid:param_enginid},height:'780px'
                , toolbar: '#toolbarDemo_speed_jinhui', page: false
                ,limit:TabInitShow.limit,soulSort: TabInitShow.soulSort,method: TabInitShow.method, overflow: TabInitShow.overflow
                ,defaultToolbar: ['','', '', ''],filter: TabInitShow.filter ,text: TabInitShow.text
                ,request: TabInitShow.request,response: TabInitShow.response,contextmenu:get_table_contextmenu(soulTable)
                ,parseData: function (res) {
                    return {
                        "code": res.code,
                        "msg": res.message,
                        "count": res.data.data.total,
                        "data": res.data.data.data
                    };
                }
                , cols: [[
                    {type:'numbers',title:'序号',fixed:'left'}
                    ,{field: 'enginname', title: '项目名称'}
                    ,{field: 'code', title: '编码'}
                    ,{field: 'buname', title: '分部名称'}
                    ,{field: 'xiangname', title: '分项名称'}
                    ,{field: 'unit', title: '单位'}
                    ,{field: 'price', title: '单价(元)'}
                    ,{field: 'num', title: '总计划工程量 A'}
                    ,{field: 'chanfee', title: '总计划产值(元) B'}
                    ,{field: 'duration', title: '总计划工期(天) C'}
                    ,{field: 'startdt', title: '计划开工日期'}
                    ,{field: 'baner', title: '负责人'}
                    ,{field: 'shifindt', title: '实际开工日期'}
                    ,{field: 'leishinum', title: '开累完成工程量 D'}
                    ,{field: 'leishichan', title: '开累完成产值(元) E'}
                    ,{field: 'leishiday', title: '开累施工天数(天) F'}
                    ,{field:'dangjin',title:'当前进度 G(D/A)',templet: function(d){
                            return d.dangjin+'%';
                        }}
                    ,{field:'gongbi',title:'工期占比 H(F/C)',templet: function(d){
                            return d.gongbi+'%';
                        }}
                    ,{field:'gongjing',title:'工期完成量预警',templet: function(d){
                            if(d.gongjing){
                                return '正常';
                            }else{
                                return '<span class="colorhong">滞后</span>';
                            }
                        }}
                    ,{field: 'dainum', title: '待完成量( A-D)'}
                    ,{field: 'daichan', title: '待完成产值(元) (B-E)'}
                    ,{field: 'sheng', title: '剩余工期(天) (C-F)'}
                    ,{field: 'zuijin', title: '最近填报月份'}
                ]]
                , done: function (res) {
                    soulTable.render(this);
                }
            });
        }
        function rel_info_piao (){
            var table_piao_kai = table.render({
                elem: "#datalist_piao_kai",url: facade.url(ask_piao_kai_list),where: {enginid:param_enginid}
                , toolbar: '#toolbarDemo_piao_kai', page: true,limit:15,totalRow: true
                ,limit:TabInitShow.limit,soulSort: TabInitShow.soulSort,method: TabInitShow.method, overflow: TabInitShow.overflow
                ,defaultToolbar: ['','', '', ''],filter: TabInitShow.filter ,text: TabInitShow.text
                ,request: TabInitShow.request,response: TabInitShow.response,contextmenu:get_table_contextmenu(soulTable)
                ,parseData: function (res) {
                    return {
                        "code": res.code,
                        "msg": res.message,
                        "count": res.data.data.total,
                        "data": res.data.data.data
                    };
                }
                , cols: [[
                    {type:'numbers',title:'序号',totalRowText: '合计',fixed:'left'}
                    ,{field:'accstatus',title:'收款状态',templet: function(d){
                            if(d.accmoney == 0){
                                return '未到账';
                            }else{
                                if(parseFloat(d.money) > parseFloat(d.accmoney)){
                                    return '<span class="colorhong" onclick="openPage(\'show.php?id='+d.id+'\')">部分到账</span>';
                                }else{
                                    return '<span class="colorlv" onclick="openPage(\'show.php?id='+d.id+'\')">全部到账</span>';
                                }
                            }
                        }}
                    ,{field:'number',title:'开票登记单号',templet: function(d){
                            return '<span class="colorlan" onclick="openPage(\'../piao_kai/show.php?id='+d.id+'\')">'+d.number+'</span>';
                        }}
                    ,{field: 'money', title: '开票金额(元)',totalRow: true}
                    ,{field: 'accmoney', title: '收款金额(元)',totalRow: true}
                    ,{field: 'piaotype', title: '发票类型'}
                    ,{field: 'duier', title: '对方单位'}
                    ,{field: 'ratenum', title: '纳税人识别号'}
                    ,{field: 'bankname', title: '开户行'}
                    ,{field: 'banknum', title: '账号'}
                    ,{field: 'unitaddr', title: '地址'}
                    ,{field: 'phone', title: '电话'}
                    ,{field: 'dt', title: '开票日期'}
                    ,{field: 'baner', title: '经手人'}
                ]]
                , done: function (res) {
                    soulTable.render(this);
                }
            });
            var table_piao_shou = table.render({
                elem: "#datalist_piao_shou",url: facade.url(ask_piao_shou_list),where: {enginid:param_enginid}
                , toolbar: '#toolbarDemo_piao_shou', page: true,limit:15,totalRow: true
                ,limit:TabInitShow.limit,soulSort: TabInitShow.soulSort,method: TabInitShow.method, overflow: TabInitShow.overflow
                ,defaultToolbar: ['','', '', ''],filter: TabInitShow.filter ,text: TabInitShow.text
                ,request: TabInitShow.request,response: TabInitShow.response,contextmenu:get_table_contextmenu(soulTable)
                ,parseData: function (res) {
                    return {
                        "code": res.code,
                        "msg": res.message,
                        "count": res.data.data.total,
                        "data": res.data.data.data
                    };
                }
                , cols: [[
                    {type:'numbers',title:'序号',totalRowText: '合计',fixed:'left'}
                    ,{field:'number',title:'收票登记单号',templet: function(d){
                            return '<span class="colorlan" onclick="openPage(\'../piao_shou/show.php?id='+d.id+'\')">'+d.number+'</span>';
                        }}
                    ,{field: 'money', title: '收票金额(元)',totalRow: true}
                    ,{field: 'dt', title: '收票日期'}
                    ,{field: 'shouername', title: '收票人'}
                ]]
                , done: function (res) {
                    soulTable.render(this);
                }
            });
        }
        function rel_info_shoufukuan (){
            var table_income_engin = table.render({
                elem: "#datalist_income_engin",url: facade.url(ask_income_engin_list),where: {enginid:param_enginid}
                , toolbar: '#toolbarDemo_income_engin', page: true,limit:15,totalRow: true
                ,limit:TabInitShow.limit,soulSort: TabInitShow.soulSort,method: TabInitShow.method, overflow: TabInitShow.overflow
                ,defaultToolbar: ['','', '', ''],filter: TabInitShow.filter ,text: TabInitShow.text
                ,request: TabInitShow.request,response: TabInitShow.response,contextmenu:get_table_contextmenu(soulTable)
                ,parseData: function (res) {
                    return {
                        "code": res.code,
                        "msg": res.message,
                        "count": res.data.data.total,
                        "data": res.data.data.data
                    };
                }
                , cols: [[
                    {type:'numbers',title:'序号',totalRowText: '合计',fixed:'left'}
                    ,{field:'number',title:'收款编号',templet: function(d){
                            return '<span class="colorlan" onclick="openPage(\'../income_engin/show.php?id='+d.id+'\')">'+d.number+'</span>';
                        }}
                    ,{field: 'money', title: '本次到账金额(元)',totalRow: true}
                    ,{field: 'budname', title: '款项类型'}
                    ,{field: 'zhai', title: '款项摘要'}
                    ,{field: 'incqing', title: '发票'}
                    ,{field: 'faer', title: '收款对象'}
                    ,{field: 'incdaotype', title: '到账方式'}
                    ,{field: 'dt', title: '到账日期'}
                    ,{field: 'accname', title: '到账账户'}
                    ,{field: 'baner', title: '经办人'}
                ]]
                , done: function (res) {
                    soulTable.render(this);
                }
            });
            var table_payment_engin = table.render({
                elem: "#datalist_payment_engin",url: facade.url(ask_payment_engin_list),where: {enginid:param_enginid}
                , toolbar: '#toolbarDemo_payment_engin', page: true,limit:15,totalRow: true
                ,limit:TabInitShow.limit,soulSort: TabInitShow.soulSort,method: TabInitShow.method, overflow: TabInitShow.overflow
                ,defaultToolbar: ['','', '', ''],filter: TabInitShow.filter ,text: TabInitShow.text
                ,request: TabInitShow.request,response: TabInitShow.response,contextmenu:get_table_contextmenu(soulTable)
                ,parseData: function (res) {
                    return {
                        "code": res.code,
                        "msg": res.message,
                        "count": res.data.data.total,
                        "data": res.data.data.data
                    };
                }
                , cols: [[
                    {type:'numbers',title:'序号',totalRowText: '合计',fixed:'left'}
                    ,{field:'number',title:'付款编号',templet: function(d){
                            return '<span class="colorlan" onclick="openPage(\'../payment_engin/show.php?id='+d.id+'\')">'+d.number+'</span>';
                        }}
                    ,{field: 'budid_name', title: '款项类型'}
                    ,{field: 'zhai', title: '款项摘要'}
                    ,{field: 'incqing', title: '发票情况'}
                    ,{field: 'incdaotype', title: '支付方式'}
                    ,{field: 'money', title: '请款金额(元)',totalRow: true}
                    ,{field: 'accmoney', title: '已支付(元)',totalRow: true}
                    ,{field: 'gonger', title: '付款对象'}
                    ,{field:'cainame',title:'合同名称',event:"cainame",templet: function (e) {
                            return '<a class="colorlan">'+e.cainame+'</a>';
                        }}
                ]]
                , done: function (res) {
                    soulTable.render(this);
                }
            });
        }
        function rel_info_stuff (){
            var table_contract_cai_1 = table.render({
                elem: "#datalist_contract_cai_1",url: facade.url(ask_contract_cai_list),where: {enginid:param_enginid,caihetype:1}
                , toolbar: '#toolbarDemo_contract_cai_1', page: true,limit:15,totalRow: true
                ,limit:TabInitShow.limit,soulSort: TabInitShow.soulSort,method: TabInitShow.method, overflow: TabInitShow.overflow
                ,defaultToolbar: ['','', '', ''],filter: TabInitShow.filter ,text: TabInitShow.text
                ,request: TabInitShow.request,response: TabInitShow.response,contextmenu:get_table_contextmenu(soulTable)
                ,parseData: function (res) {
                    return {
                        "code": res.code,
                        "msg": res.message,
                        "count": res.data.data.total,
                        "data": res.data.data.data
                    };
                }
                , cols: [[
                    {type:'numbers',title:'序号',totalRowText: '合计',fixed:'left'}
                    ,{field: 'state_name', title: '合同状态'}
                    ,{field: 'name', title: '合同名称'}
                    ,{field:'number',title:'合同编号',templet: function(d){
                            return '<span class="colorlan" onclick="openPage(\'../contract_cai/show.php?id='+d.id+'\')">'+d.number+'</span>';
                        }}
                    ,{field: 'year', title: '合同年份'}
                    ,{field: 'caihetype_name', title: '合同类型'}
                    ,{field: 'caiheshu', title: '合同属性'}
                    ,{field: 'gonger', title: '供应方(乙方)'}
                    ,{field: 'caier_name', title: ' 采购方(甲方)'}
                    ,{field: 'gonguser', title: '乙方联系人'}
                    ,{field: 'myer', title: '我方签订人'}
                    ,{field: 'gongtel', title: '乙方联系方式'}
                    ,{field: 'qiandt', title: '签订日期'}
                    ,{field: 'money', title: '合同金额(元)',totalRow: true}
                    ,{field: 'rate', title: '税率(%)'}
                    ,{field: 'startdt', title: '合同开始日期'}
                    ,{field: 'enddt', title: '合同结束日期'}
                    ,{field: 'zhirate', title: '质保金比例(%)'}
                    ,{field: 'zhifee', title: '质保金金额(元)'}
                ]]
                , done: function (res) {
                    soulTable.render(this);
                }
            });
            var table_stuff_ru = table.render({
                elem: "#datalist_stuff_ru",url: facade.url(ask_stuff_ru_list),where: {enginid:param_enginid}
                , toolbar: '#toolbarDemo_stuff_ru', page: true,limit:15,totalRow: true
                ,limit:TabInitShow.limit,soulSort: TabInitShow.soulSort,method: TabInitShow.method, overflow: TabInitShow.overflow
                ,defaultToolbar: ['','', '', ''],filter: TabInitShow.filter ,text: TabInitShow.text
                ,request: TabInitShow.request,response: TabInitShow.response,contextmenu:get_table_contextmenu(soulTable)
                ,parseData: function (res) {
                    return {
                        "code": res.code,
                        "msg": res.message,
                        "count": res.data.data.total,
                        "data": res.data.data.data
                    };
                }
                , cols: [[
                    {type:'numbers',title:'序号',totalRowText: '合计',fixed:'left'}
                    ,{field:'number',title:'入库单号',templet: function(d){
                            return '<span class="colorlan" onclick="openPage(\'../stuff_ru/show.php?id='+d.id+'\')">'+d.number+'</span>';
                        }}
                    ,{field: 'caiid_name', title: '合同名称'}
                    ,{field: 'gonger', title: '供应商'}
                    ,{field: 'money', title: '入库金额(元)',totalRow: true}
                    ,{field: 'rudt', title: '入库日期'}
                    ,{field: 'baner', title: '入库人'}
                ]]
                , done: function (res) {
                    soulTable.render(this);
                }
            });
            var table_stuff_cai = table.render({
                elem: "#datalist_stuff_cai",url: facade.url(ask_stuff_cai_list),where: {enginid:param_enginid}
                , toolbar: '#toolbarDemo_stuff_cai', page: true,limit:15,totalRow: true
                ,limit:TabInitShow.limit,soulSort: TabInitShow.soulSort,method: TabInitShow.method, overflow: TabInitShow.overflow
                ,defaultToolbar: ['','', '', ''],filter: TabInitShow.filter ,text: TabInitShow.text
                ,request: TabInitShow.request,response: TabInitShow.response,contextmenu:get_table_contextmenu(soulTable)
                ,parseData: function (res) {
                    return {
                        "code": res.code,
                        "msg": res.message,
                        "count": res.data.data.total,
                        "data": res.data.data.data
                    };
                }
                , cols: [[
                    {type:'numbers',title:'序号',totalRowText: '合计',fixed:'left'}
                    ,{field:'number',title:'采购单号',templet: function(d){
                            return '<span class="colorlan" onclick="openPage(\'../stuff_cai/show.php?id='+d.id+'\')">'+d.number+'</span>';
                        }}
                    ,{field: 'gonger', title: '供应商'}
                    ,{field: 'money', title: '采购金额(元)',totalRow: true}
                    ,{field: 'caidt', title: '采购日期'}
                    ,{field: 'baner', title: '采购人'}
                ]]
                , done: function (res) {
                    soulTable.render(this);
                }
            });
            var table_stuff_jie = table.render({
                elem: "#datalist_stuff_jie",url: facade.url(ask_stuff_jie_list),where: {enginid:param_enginid}
                , toolbar: '#toolbarDemo_stuff_jie', page: true,limit:15,totalRow: true
                ,limit:TabInitShow.limit,soulSort: TabInitShow.soulSort,method: TabInitShow.method, overflow: TabInitShow.overflow
                ,defaultToolbar: ['','', '', ''],filter: TabInitShow.filter ,text: TabInitShow.text
                ,request: TabInitShow.request,response: TabInitShow.response,contextmenu:get_table_contextmenu(soulTable)
                ,parseData: function (res) {
                    return {
                        "code": res.code,
                        "msg": res.message,
                        "count": res.data.data.total,
                        "data": res.data.data.data
                    };
                }
                , cols: [[
                    {type:'numbers',title:'序号',totalRowText: '合计',fixed:'left'}
                    ,{field:'number',title:'结算单号',templet: function(d){
                            return '<span class="colorlan" onclick="openPage(\'../stuff_jie/show.php?id='+d.id+'\')">'+d.number+'</span>';
                        }}
                    ,{field: 'gonger', title: '供应商'}
                    ,{field: 'zhuname', title: '结算主题'}
                    ,{field: 'caiid_name', title: '采购合同'}
                    ,{field: 'money', title: '结算金额(元)',totalRow: true}
                    ,{field: 'jiedt', title: '结算日期'}
                    ,{field: 'baner', title: '经手人'}
                ]]
                , done: function (res) {
                    soulTable.render(this);
                }
            });
            var table_stuff_ku = table.render({
                elem: "#datalist_stuff_ku",url: facade.url(ask_stuff_ku_list),where: {enginid:param_enginid}
                , toolbar: '#toolbarDemo_stuff_ku', page: false,limit:15,totalRow: true
                ,limit:TabInitShow.limit,soulSort: TabInitShow.soulSort,method: TabInitShow.method, overflow: TabInitShow.overflow
                ,defaultToolbar: ['','', '', ''],filter: TabInitShow.filter ,text: TabInitShow.text
                ,request: TabInitShow.request,response: TabInitShow.response,contextmenu:get_table_contextmenu(soulTable)
                ,parseData: function (res) {
                    return {
                        "code": res.code,
                        "msg": res.message,
                        "count": res.data.total,
                        "data": res.data.data
                    };
                }
                , cols: [[
                    {type:'numbers',title:'序号',totalRowText: '合计',fixed:'left'}
                    ,{field: 'name', title: '材料名称',merge:true}
                    ,{field: 'unit', title: '单位'}
                    ,{field: 'listnum', title: '入库数量',totalRow: true,align:'right',event: 'detail',templet: function(d){
                            return '<span class="colorlan">'+parseFormatNum(d.listnum)+'</span>';
                        }}
                    ,{field: 'listmoney', title: '入库金额(元)',totalRow: true,align:'right'}
                    ,{field: 'chu_num', title: '出库数量',totalRow: true,align:'right',event: 'detail',templet: function(d){
                            return '<span class="colorlan">'+parseFormatNum(d.chu_num)+'</span>';
                        }}
                    ,{field: 'chu_money', title: '出库金额(元)',totalRow: true,align:'right'}
                    ,{field: 'tui_num', title: '退库数量',totalRow: true,align:'right',event: 'detail',templet: function(d){
                            return '<span class="colorlan">'+parseFormatNum(d.tui_num)+'</span>';
                        }}
                    ,{field: 'tui_money', title: '退库金额(元)',totalRow: true,align:'right'}
                    ,{field: 'hao_num', title: '耗用数量',totalRow: true,align:'right'}
                    ,{field: 'hao_money', title: '耗用金额(元)',totalRow: true,align:'right'}
                    ,{field: 'ku_num', title: '库存数量',totalRow: true,align:'right'}
                    ,{field: 'ku_money', title: '库存金额(元)',totalRow: true,align:'right'}
                ]]
                , done: function (res) {
                    soulTable.render(this);
                }
            });

        }
        function rel_info_labour (){
            var table_contract_cai_2 = table.render({
                elem: "#datalist_contract_cai_2",url: facade.url(ask_contract_cai_list),where: {enginid:param_enginid,caihetype:2}
                , toolbar: '#toolbarDemo_contract_cai_2', page: true,limit:15,totalRow: true
                ,limit:TabInitShow.limit,soulSort: TabInitShow.soulSort,method: TabInitShow.method, overflow: TabInitShow.overflow
                ,defaultToolbar: ['','', '', ''],filter: TabInitShow.filter ,text: TabInitShow.text
                ,request: TabInitShow.request,response: TabInitShow.response,contextmenu:get_table_contextmenu(soulTable)
                ,parseData: function (res) {
                    return {
                        "code": res.code,
                        "msg": res.message,
                        "count": res.data.data.total,
                        "data": res.data.data.data
                    };
                }
                , cols: [[
                    {type:'numbers',title:'序号',totalRowText: '合计',fixed:'left'}
                    ,{field: 'state_name', title: '合同状态'}
                    ,{field: 'name', title: '合同名称'}
                    ,{field:'number',title:'合同编号',templet: function(d){
                            return '<span class="colorlan" onclick="openPage(\'../contract_cai/show.php?id='+d.id+'\')">'+d.number+'</span>';
                        }}
                    ,{field: 'year', title: '合同年份'}
                    ,{field: 'caihetype_name', title: '合同类型'}
                    ,{field: 'caiheshu', title: '合同属性'}
                    ,{field: 'gonger', title: '供应方(乙方)'}
                    ,{field: 'caier_name', title: ' 采购方(甲方)'}
                    ,{field: 'gonguser', title: '乙方联系人'}
                    ,{field: 'myer', title: '我方签订人'}
                    ,{field: 'gongtel', title: '乙方联系方式'}
                    ,{field: 'qiandt', title: '签订日期'}
                    ,{field: 'money', title: '合同金额(元)',totalRow: true}
                    ,{field: 'rate', title: '税率(%)'}
                    ,{field: 'startdt', title: '合同开始日期'}
                    ,{field: 'enddt', title: '合同结束日期'}
                    ,{field: 'zhirate', title: '质保金比例(%)'}
                    ,{field: 'zhifee', title: '质保金金额(元)'}
                ]]
                , done: function (res) {
                    soulTable.render(this);
                }
            });
            var table_labour_shen = table.render({
                elem: "#datalist_labour_shen",url: facade.url(ask_labour_shen_list),where: {enginid:param_enginid}
                , toolbar: '#toolbarDemo_labour_shen', page: true,limit:15,totalRow: true
                ,limit:TabInitShow.limit,soulSort: TabInitShow.soulSort,method: TabInitShow.method, overflow: TabInitShow.overflow
                ,defaultToolbar: ['','', '', ''],filter: TabInitShow.filter ,text: TabInitShow.text
                ,request: TabInitShow.request,response: TabInitShow.response,contextmenu:get_table_contextmenu(soulTable)
                ,parseData: function (res) {
                    return {
                        "code": res.code,
                        "msg": res.message,
                        "count": res.data.data.total,
                        "data": res.data.data.data
                    };
                }
                , cols: [[
                    {type:'numbers',title:'序号',totalRowText: '合计',fixed:'left'}
                    ,{field: 'cainame', title: '合同名称'}
                    ,{field: 'gonger', title: '劳务班组'}
                    ,{field:'number',title:'申报单号',templet: function(d){
                            return '<span class="colorlan" onclick="openPage(\'../labour_shen/show.php?id='+d.id+'\')">'+d.number+'</span>';
                        }}
                    ,{field: 'shenmoney', title: '申报金额(元)',totalRow: true}
                    ,{field: 'money', title: '核定金额(元)',totalRow: true}
                    ,{field: 'dt', title: '填报时间'}
                    ,{field: 'baner', title: '填报人'}
                ]]
                , done: function (res) {
                    soulTable.render(this);
                }
            });
            var table_labour_ling = table.render({
                elem: "#datalist_labour_ling",url: facade.url(ask_labour_ling_list),where: {enginid:param_enginid}
                , toolbar: '#toolbarDemo_labour_ling', page: true,limit:15,totalRow: true
                ,limit:TabInitShow.limit,soulSort: TabInitShow.soulSort,method: TabInitShow.method, overflow: TabInitShow.overflow
                ,defaultToolbar: ['','', '', ''],filter: TabInitShow.filter ,text: TabInitShow.text
                ,request: TabInitShow.request,response: TabInitShow.response,contextmenu:get_table_contextmenu(soulTable)
                ,parseData: function (res) {
                    return {
                        "code": res.code,
                        "msg": res.message,
                        "count": res.data.data.total,
                        "data": res.data.data.data
                    };
                }
                , cols: [[
                    {type:'numbers',title:'序号',totalRowText: '合计',fixed:'left'}
                    ,{field: 'gonger', title: '劳务班组'}
                    ,{field:'number',title:'零星劳务单号',templet: function(d){
                            return '<span class="colorlan" onclick="openPage(\'../labour_ling/show.php?id='+d.id+'\')">'+d.number+'</span>';
                        }}
                    ,{field: 'money', title: '登记金额(元)',totalRow: true}
                    ,{field: 'dt', title: '填报时间'}
                    ,{field: 'baner', title: '填报人'}
                ]]
                , done: function (res) {
                    soulTable.render(this);
                }
            });
            var table_labour_jie = table.render({
                elem: "#datalist_labour_jie",url: facade.url(ask_labour_jie_list),where: {enginid:param_enginid}
                , toolbar: '#toolbarDemo_labour_jie', page: true,limit:15,totalRow: true
                ,limit:TabInitShow.limit,soulSort: TabInitShow.soulSort,method: TabInitShow.method, overflow: TabInitShow.overflow
                ,defaultToolbar: ['','', '', ''],filter: TabInitShow.filter ,text: TabInitShow.text
                ,request: TabInitShow.request,response: TabInitShow.response,contextmenu:get_table_contextmenu(soulTable)
                ,parseData: function (res) {
                    return {
                        "code": res.code,
                        "msg": res.message,
                        "count": res.data.data.total,
                        "data": res.data.data.data
                    };
                }
                , cols: [[
                    {type:'numbers',title:'序号',totalRowText: '合计',fixed:'left'}
                    ,{field: 'cainame', title: '合同名称'}
                    ,{field: 'gonger', title: '劳务班组'}
                    ,{field:'number',title:'结算单号',templet: function(d){
                            return '<span class="colorlan" onclick="openPage(\'../labour_jie/show.php?id='+d.id+'\')">'+d.number+'</span>';
                        }}
                    ,{field: 'koufee', title: '扣款(元)',totalRow: true}
                    ,{field: 'fafee', title: '罚款(元)',totalRow: true}
                    ,{field: 'money', title: '结算金额(元)',totalRow: true}
                    ,{field: 'created_at', title: '填报时间'}
                ]]
                , done: function (res) {
                    soulTable.render(this);
                }
            });

        }
        function rel_info_device (){
            var table_contract_cai_3 = table.render({
                elem: "#datalist_contract_cai_3",url: facade.url(ask_contract_cai_list),where: {enginid:param_enginid,caihetype:3}
                , toolbar: '#toolbarDemo_contract_cai_3', page: true,limit:15,totalRow: true
                ,limit:TabInitShow.limit,soulSort: TabInitShow.soulSort,method: TabInitShow.method, overflow: TabInitShow.overflow
                ,defaultToolbar: ['','', '', ''],filter: TabInitShow.filter ,text: TabInitShow.text
                ,request: TabInitShow.request,response: TabInitShow.response,contextmenu:get_table_contextmenu(soulTable)
                ,parseData: function (res) {
                    return {
                        "code": res.code,
                        "msg": res.message,
                        "count": res.data.data.total,
                        "data": res.data.data.data
                    };
                }
                , cols: [[
                    {type:'numbers',title:'序号',totalRowText: '合计',fixed:'left'}
                    ,{field: 'state_name', title: '合同状态'}
                    ,{field: 'name', title: '合同名称'}
                    ,{field:'number',title:'合同编号',templet: function(d){
                            return '<span class="colorlan" onclick="openPage(\'../contract_cai/show.php?id='+d.id+'\')">'+d.number+'</span>';
                        }}
                    ,{field: 'year', title: '合同年份'}
                    ,{field: 'caihetype_name', title: '合同类型'}
                    ,{field: 'caiheshu', title: '合同属性'}
                    ,{field: 'gonger', title: '供应方(乙方)'}
                    ,{field: 'caier_name', title: ' 采购方(甲方)'}
                    ,{field: 'gonguser', title: '乙方联系人'}
                    ,{field: 'myer', title: '我方签订人'}
                    ,{field: 'gongtel', title: '乙方联系方式'}
                    ,{field: 'qiandt', title: '签订日期'}
                    ,{field: 'money', title: '合同金额(元)',totalRow: true}
                    ,{field: 'rate', title: '税率(%)'}
                    ,{field: 'startdt', title: '合同开始日期'}
                    ,{field: 'enddt', title: '合同结束日期'}
                    ,{field: 'zhirate', title: '质保金比例(%)'}
                    ,{field: 'zhifee', title: '质保金金额(元)'}
                ]]
                , done: function (res) {
                    soulTable.render(this);
                }
            });
            var table_device_jin = table.render({
                elem: "#datalist_device_jin",url: facade.url(ask_device_jin_list),where: {enginid:param_enginid}
                , toolbar: '#toolbarDemo_device_jin', page: true,limit:15
                ,limit:TabInitShow.limit,soulSort: TabInitShow.soulSort,method: TabInitShow.method, overflow: TabInitShow.overflow
                ,defaultToolbar: ['','', '', ''],filter: TabInitShow.filter ,text: TabInitShow.text
                ,request: TabInitShow.request,response: TabInitShow.response,contextmenu:get_table_contextmenu(soulTable)
                ,parseData: function (res) {
                    return {
                        "code": res.code,
                        "msg": res.message,
                        "count": res.data.data.total,
                        "data": res.data.data.data
                    };
                }
                , cols: [[
                    {type:'numbers',title:'序号',fixed:'left'}
                    ,{field: 'cainame', title: '合同名称'}
                    ,{field: 'caigonger', title: '供应商'}
                    ,{field:'number',title:'进场单号',templet: function(d){
                            return '<span class="colorlan" onclick="openPage(\'../device_jin/show.php?id='+d.id+'\')">'+d.number+'</span>';
                        }}
                    ,{field: 'dt', title: '登记日期'}
                    ,{field: 'baner', title: '登记人'}
                ]]
                , done: function (res) {
                    soulTable.render(this);
                }
            });
            var table_device_jie = table.render({
                elem: "#datalist_device_jie",url: facade.url(ask_device_jie_list),where: {enginid:param_enginid}
                , toolbar: '#toolbarDemo_device_jie', page: true,limit:15,totalRow: true
                ,limit:TabInitShow.limit,soulSort: TabInitShow.soulSort,method: TabInitShow.method, overflow: TabInitShow.overflow
                ,defaultToolbar: ['','', '', ''],filter: TabInitShow.filter ,text: TabInitShow.text
                ,request: TabInitShow.request,response: TabInitShow.response,contextmenu:get_table_contextmenu(soulTable)
                ,parseData: function (res) {
                    return {
                        "code": res.code,
                        "msg": res.message,
                        "count": res.data.data.total,
                        "data": res.data.data.data
                    };
                }
                , cols: [[
                    {type:'numbers',title:'序号',totalRowText: '合计',fixed:'left'}
                    ,{field:'number',title:'租赁结算单号',templet: function(d){
                            return '<span class="colorlan" onclick="openPage(\'../device_jie/show.php?id='+d.id+'\')">'+d.number+'</span>';
                        }}
                    ,{field: 'cainame', title: '合同名称'}
                    ,{field: 'caigonger', title: '供应商'}
                    ,{field: 'money', title: '结算金额',totalRow: true}
                    ,{field: 'dt', title: '结算时间'}
                    ,{field: 'baner', title: '填报人'}
                ]]
                , done: function (res) {
                    soulTable.render(this);
                }
            });
            var table_device_lin = table.render({
                elem: "#datalist_device_lin",url: facade.url(ask_device_lin_list),where: {enginid:param_enginid}
                , toolbar: '#toolbarDemo_device_lin', page: true,limit:15,totalRow: true
                ,limit:TabInitShow.limit,soulSort: TabInitShow.soulSort,method: TabInitShow.method, overflow: TabInitShow.overflow
                ,defaultToolbar: ['','', '', ''],filter: TabInitShow.filter ,text: TabInitShow.text
                ,request: TabInitShow.request,response: TabInitShow.response,contextmenu:get_table_contextmenu(soulTable)
                ,parseData: function (res) {
                    return {
                        "code": res.code,
                        "msg": res.message,
                        "count": res.data.data.total,
                        "data": res.data.data.data
                    };
                }
                , cols: [[
                    {type:'numbers',title:'序号',totalRowText: '合计',fixed:'left'}
                    ,{field:'number',title:'临时机械登记单号',templet: function(d){
                            return '<span class="colorlan" onclick="openPage(\'../device_lin/show.php?id='+d.id+'\')">'+d.number+'</span>';
                        }}
                    ,{field: 'gonger', title: '供应商'}
                    ,{field: 'money', title: '登记金额(元)',totalRow: true}
                    ,{field: 'dt', title: '填报时间'}
                    ,{field: 'baner', title: '填报人'}
                ]]
                , done: function (res) {
                    soulTable.render(this);
                }
            });

        }
        function rel_info_subbao (){
            var table_contract_cai_4 = table.render({
                elem: "#datalist_contract_cai_4",url: facade.url(ask_contract_cai_list),where: {enginid:param_enginid,caihetype:4}
                , toolbar: '#toolbarDemo_contract_cai_4', page: true,limit:15,totalRow: true
                ,limit:TabInitShow.limit,soulSort: TabInitShow.soulSort,method: TabInitShow.method, overflow: TabInitShow.overflow
                ,defaultToolbar: ['','', '', ''],filter: TabInitShow.filter ,text: TabInitShow.text
                ,request: TabInitShow.request,response: TabInitShow.response,contextmenu:get_table_contextmenu(soulTable)
                ,parseData: function (res) {
                    return {
                        "code": res.code,
                        "msg": res.message,
                        "count": res.data.data.total,
                        "data": res.data.data.data
                    };
                }
                , cols: [[
                    {type:'numbers',title:'序号',totalRowText: '合计',fixed:'left'}
                    ,{field: 'state_name', title: '合同状态'}
                    ,{field: 'name', title: '合同名称'}
                    ,{field:'number',title:'合同编号',templet: function(d){
                            return '<span class="colorlan" onclick="openPage(\'../contract_cai/show.php?id='+d.id+'\')">'+d.number+'</span>';
                        }}
                    ,{field: 'year', title: '合同年份'}
                    ,{field: 'caihetype_name', title: '合同类型'}
                    ,{field: 'caiheshu', title: '合同属性'}
                    ,{field: 'gonger', title: '供应方(乙方)'}
                    ,{field: 'caier_name', title: ' 采购方(甲方)'}
                    ,{field: 'gonguser', title: '乙方联系人'}
                    ,{field: 'myer', title: '我方签订人'}
                    ,{field: 'gongtel', title: '乙方联系方式'}
                    ,{field: 'qiandt', title: '签订日期'}
                    ,{field: 'money', title: '合同金额(元)',totalRow: true}
                    ,{field: 'rate', title: '税率(%)'}
                    ,{field: 'startdt', title: '合同开始日期'}
                    ,{field: 'enddt', title: '合同结束日期'}
                    ,{field: 'zhirate', title: '质保金比例(%)'}
                    ,{field: 'zhifee', title: '质保金金额(元)'}
                ]]
                , done: function (res) {
                    soulTable.render(this);
                }
            });
            var table_subbao_shen = table.render({
                elem: "#datalist_subbao_shen",url: facade.url(ask_subbao_shen_list),where: {enginid:param_enginid}
                , toolbar: '#toolbarDemo_subbao_shen', page: true,limit:15,totalRow: true
                ,limit:TabInitShow.limit,soulSort: TabInitShow.soulSort,method: TabInitShow.method, overflow: TabInitShow.overflow
                ,defaultToolbar: ['','', '', ''],filter: TabInitShow.filter ,text: TabInitShow.text
                ,request: TabInitShow.request,response: TabInitShow.response,contextmenu:get_table_contextmenu(soulTable)
                ,parseData: function (res) {
                    return {
                        "code": res.code,
                        "msg": res.message,
                        "count": res.data.data.total,
                        "data": res.data.data.data
                    };
                }
                , cols: [[
                    {type:'numbers',title:'序号',totalRowText: '合计',fixed:'left'}
                    ,{field: 'cainame', title: '合同名称'}
                    ,{field: 'gonger', title: '分包单位'}
                    ,{field:'number',title:'申报单号',templet: function(d){
                            return '<span class="colorlan" onclick="openPage(\'../subbao_shen/show.php?id='+d.id+'\')">'+d.number+'</span>';
                        }}
                    ,{field: 'shenmoney', title: '申报金额(元)',totalRow: true}
                    ,{field: 'money', title: '核定金额(元)',totalRow: true}
                    ,{field: 'dt', title: '填报时间'}
                    ,{field: 'baner', title: '填报人'}
                ]]
                , done: function (res) {
                    soulTable.render(this);
                }
            });
            var table_subbao_jie = table.render({
                elem: "#datalist_subbao_jie",url: facade.url(ask_subbao_jie_list),where: {enginid:param_enginid}
                , toolbar: '#toolbarDemo_subbao_jie', page: true,limit:15,totalRow: true
                ,limit:TabInitShow.limit,soulSort: TabInitShow.soulSort,method: TabInitShow.method, overflow: TabInitShow.overflow
                ,defaultToolbar: ['','', '', ''],filter: TabInitShow.filter ,text: TabInitShow.text
                ,request: TabInitShow.request,response: TabInitShow.response,contextmenu:get_table_contextmenu(soulTable)
                ,parseData: function (res) {
                    return {
                        "code": res.code,
                        "msg": res.message,
                        "count": res.data.data.total,
                        "data": res.data.data.data
                    };
                }
                , cols: [[
                    {type:'numbers',title:'序号',totalRowText: '合计',fixed:'left'}
                    ,{field: 'cainame', title: '合同名称'}
                    ,{field: 'gonger', title: '分包单位'}
                    ,{field:'number',title:'结算单号',templet: function(d){
                            return '<span class="colorlan" onclick="openPage(\'../subbao_jie/show.php?id='+d.id+'\')">'+d.number+'</span>';
                        }}
                    ,{field: 'koufee', title: '扣款(元)',totalRow: true}
                    ,{field: 'fafee', title: '罚款(元)',totalRow: true}
                    ,{field: 'money', title: '结算金额(元)',totalRow: true}
                    ,{field: 'dt', title: '结算时间'}
                    ,{field: 'baner', title: '填报人'}
                ]]
                , done: function (res) {
                    soulTable.render(this);
                }
            });

        }
        function rel_info_zhian (){
            var table_engin_xun = table.render({
                elem: "#datalist_engin_xun",url: facade.url(ask_engin_xun_list),where: {enginid:param_enginid}
                , toolbar: '#toolbarDemo_engin_xun', page: true,limit:15
                ,limit:TabInitShow.limit,soulSort: TabInitShow.soulSort,method: TabInitShow.method, overflow: TabInitShow.overflow
                ,defaultToolbar: ['','', '', ''],filter: TabInitShow.filter ,text: TabInitShow.text
                ,request: TabInitShow.request,response: TabInitShow.response,contextmenu:get_table_contextmenu(soulTable)
                ,parseData: function (res) {
                    return {
                        "code": res.code,
                        "msg": res.message,
                        "count": res.data.data.total,
                        "data": res.data.data.data
                    };
                }
                , cols: [[
                    {type:'numbers',title:'序号',fixed:'left'}
                    ,{field:'number',title:'巡检编号',templet: function(d){
                            return '<span class="colorlan" onclick="openPage(\'../engin_xun/show.php?id='+d.id+'\')">'+d.number+'</span>';
                        }}
                    ,{field: 'name', title: '巡检名称'}
                    ,{field: 'xuntype', title: '巡检类型'}
                    ,{field: 'dt', title: '巡检日期'}
                    ,{field: 'xundept_name', title: '巡检部门'}
                    ,{field: 'xuner_name', title: '巡检人'}
                    ,{field: 'zhengnum', title: '整改通知'}
                ]]
                , done: function (res) {
                    soulTable.render(this);
                }
            });
            var table_engin_zheng = table.render({
                elem: "#datalist_engin_zheng",url: facade.url(ask_engin_zheng_list),where: {enginid:param_enginid}
                , toolbar: '#toolbarDemo_engin_zheng', page: true,limit:15
                ,limit:TabInitShow.limit,soulSort: TabInitShow.soulSort,method: TabInitShow.method, overflow: TabInitShow.overflow
                ,defaultToolbar: ['','', '', ''],filter: TabInitShow.filter ,text: TabInitShow.text
                ,request: TabInitShow.request,response: TabInitShow.response,contextmenu:get_table_contextmenu(soulTable)
                ,parseData: function (res) {

                    var paforStr = '';
                    paforStr += '<div class="paforcon">';
                    paforStr += '<span class="pl">整改通知总数：<span class="pv">'+res.data.all+'</span></span>';
                    paforStr += '<span class="pl">已整改：<span class="pv">'+res.data.zhengn_um+'</span></span>';
                    paforStr += '<span class="pl">待整改：<span class="pv">'+res.data.zhengnum_no+'</span></span>';
                    paforStr += '<span class="pl">逾期未整改：<span class="pv">'+res.data.zhengnum_yu+'</span></span>';
                    paforStr += '</div>';
                    $("div[lay-id='datalist_engin_zheng'] .layui-table-page").prepend(paforStr);

                    return {
                        "code": res.code,
                        "msg": res.message,
                        "count": res.data.data.total,
                        "data": res.data.data.data
                    };
                }
                , cols: [[
                    {type:'numbers',title:'序号',fixed:'left'}
                    ,{field:'number',title:'整改通知编号',templet: function(d){
                            return '<span class="colorlan" onclick="openPage(\'../engin_zheng/show.php?id='+d.id+'\')">'+d.number+'</span>';
                        }}
                    ,{field: 'fuzeer_name', title: '整改负责人'}
                    ,{field: 'dt', title: '要求整改期限'}
                    ,{field: 'deptid_name', title: '下发部门'}
                    ,{field: 'created_at', title: '下发时间'}
                    ,{field: 'xunnumber', title: '关联巡检'}
                    ,{field: 'gaista_name', title: '整改状态'}
                    ,{field: 'fusta_name', title: '复检状态'}
                ]]
                , done: function (res) {
                    soulTable.render(this);
                }
            });
        }
        function rel_info_stamp (){
            var table_engin_stamp = table.render({
                elem: "#datalist_engin_stamp",url: facade.url(ask_engin_stamp_list),where: {enginid:param_enginid}
                , toolbar: '#toolbarDemo_engin_stamp', page: true,limit:15
                ,limit:TabInitShow.limit,soulSort: TabInitShow.soulSort,method: TabInitShow.method, overflow: TabInitShow.overflow
                ,defaultToolbar: ['','', '', ''],filter: TabInitShow.filter ,text: TabInitShow.text
                ,request: TabInitShow.request,response: TabInitShow.response,contextmenu:get_table_contextmenu(soulTable)
                ,parseData: function (res) {
                    return {
                        "code": res.code,
                        "msg": res.message,
                        "count": res.data.data.total,
                        "data": res.data.data.data
                    };
                }
                , cols: [[
                    {type:'numbers',title:'序号',fixed:'left'}
                    ,{field:'zitype',title:'资料类型',templet: function(d){
                            return '<span class="colorlan" onclick="openPage(\'../engin_stamp/show.php?id='+d.id+'\')">'+d.zitype+'</span>';
                        }}
                    ,{field: 'isgai_name', title: '盖章状态'}
                    ,{field: 'flowuser', title: '申请人'}
                    ,{field: 'flowdept', title: '申请部门'}
                    ,{field: 'created_at', title: '申请时间'}
                ]]
                , done: function (res) {
                    soulTable.render(this);
                }
            });
            var table_engin_stamp_detail = table.render({
                elem: "#datalist_engin_stamp_detail",url: facade.url(ask_engin_stamp_detail_list),where: {enginid:param_enginid}
                , toolbar: '#toolbarDemo_engin_stamp_detail', page: true,limit:15
                ,limit:TabInitShow.limit,soulSort: TabInitShow.soulSort,method: TabInitShow.method, overflow: TabInitShow.overflow
                ,defaultToolbar: ['','', '', ''],filter: TabInitShow.filter ,text: TabInitShow.text
                ,request: TabInitShow.request,response: TabInitShow.response,contextmenu:get_table_contextmenu(soulTable)
                ,parseData: function (res) {
                    return {
                        "code": res.code,
                        "msg": res.message,
                        "count": res.data.data.total,
                        "data": res.data.data.data
                    };
                }
                , cols: [[
                    {type:'numbers',title:'序号',fixed:'left'}
                    ,{field: 'enginname', title: '项目名称'}
                    ,{field: 'name', title: '资料文件名称'}
                    ,{field: 'yongtype', title: '用章类型'}
                    ,{field: 'num', title: '盖章份数'}
                    ,{field: 'flowuser', title: '申请人'}
                    ,{field: 'gaidt', title: '盖章日期'}
                    ,{field: 'gaier', title: '盖章人'}
                    ,{field: 'isfan', title: '是否需返还'}
                    ,{field: 'fandt', title: '返还日期'}
                    ,{field: 'jieer', title: '接收人'}
                ]]
                , done: function (res) {
                    soulTable.render(this);
                }
            });
        }
        function rel_info_bond (){
            var table_engin_bond_jiao = table.render({
                elem: "#datalist_engin_bond_jiao",url: facade.url(ask_engin_bond_jiao_list),where: {enginid:param_enginid}
                , toolbar: '#toolbarDemo_engin_bond_jiao', page: true,limit:15,totalRow: true
                ,limit:TabInitShow.limit,soulSort: TabInitShow.soulSort,method: TabInitShow.method, overflow: TabInitShow.overflow
                ,defaultToolbar: ['','', '', ''],filter: TabInitShow.filter ,text: TabInitShow.text
                ,request: TabInitShow.request,response: TabInitShow.response,contextmenu:get_table_contextmenu(soulTable)
                ,parseData: function (res) {
                    return {
                        "code": res.code,
                        "msg": res.message,
                        "count": res.data.data.total,
                        "data": res.data.data.data
                    };
                }
                , cols: [[
                    {type:'numbers',title:'序号',totalRowText: '合计',fixed:'left'}
                    ,{field: 'state', title: '状态'}
                    ,{field:'number',title:'付款编号',templet: function(d){
                            return '<span class="colorlan" onclick="openPage(\'../engin_bond_jiao/show.php?id='+d.id+'\')">'+d.number+'</span>';
                        }}
                    ,{field: 'bondtype', title: '保证金类型'}
                    ,{field: 'zhai', title: '款项摘要'}
                    ,{field: 'incdaotype', title: '支付方式'}
                    ,{field: 'money', title: '请款金额(元)',totalRow: true}
                    ,{field: 'accmoney', title: '已支付(元)',totalRow: true}
                    ,{field: 'tuimoney', title: '已退回(元)',totalRow: true}
                    ,{field: 'gonger', title: '付款对象'}
                ]]
                , done: function (res) {
                    soulTable.render(this);
                }
            });
            var table_engin_bond_kai = table.render({
                elem: "#datalist_engin_bond_kai",url: facade.url(ask_engin_bond_kai_list),where: {enginid:param_enginid}
                , toolbar: '#toolbarDemo_engin_bond_kai', page: true,limit:15,totalRow: true
                ,limit:TabInitShow.limit,soulSort: TabInitShow.soulSort,method: TabInitShow.method, overflow: TabInitShow.overflow
                ,defaultToolbar: ['','', '', ''],filter: TabInitShow.filter ,text: TabInitShow.text
                ,request: TabInitShow.request,response: TabInitShow.response,contextmenu:get_table_contextmenu(soulTable)
                ,parseData: function (res) {
                    return {
                        "code": res.code,
                        "msg": res.message,
                        "count": res.data.data.total,
                        "data": res.data.data.data
                    };
                }
                , cols: [[
                    {type:'numbers',title:'序号',totalRowText: '合计',fixed:'left'}
                    ,{field: '', title: '状态',templet:function (e) {
                            if(e.kaidt != '0000-00-00' && e.kaidt != ''){
                                return '已开具';
                            }else{
                                return '未开具';
                            }
                        }}
                    ,{field:'bondtype',title:'保证金类型',templet: function(d){
                            return '<span class="colorlan" onclick="openPage(\'../engin_bond_kai/show.php?id='+d.id+'\')">'+d.bondtype+'</span>';
                        }}
                    ,{field: 'hantype', title: '保函类别'}
                    ,{field: 'money', title: ' 保函金额(元)',totalRow: true}
                    ,{field: 'shouer', title: '受益人'}
                    ,{field: 'beidaner', title: '被担保人'}
                    ,{field: 'daner', title: '担保人'}
                    ,{field: 'kaidt', title: '开具日期'}
                    ,{field: 'xiaodt', title: '有效期'}
                    ,{field: 'shoufee', title: '手续费',totalRow: true}
                ]]
                , done: function (res) {
                    soulTable.render(this);
                }
            });
        }
        function rel_info_contract_nei (){
            var table_payment_neikou = table.render({
                elem: "#datalist_payment_neikou",url: facade.url(ask_payment_neikou_list),where: {enginid:param_enginid}
                , toolbar: '#toolbarDemo_payment_neikou', page: true,limit:15,totalRow: true
                ,limit:TabInitShow.limit,soulSort: TabInitShow.soulSort,method: TabInitShow.method, overflow: TabInitShow.overflow
                ,defaultToolbar: ['','', '', ''],filter: TabInitShow.filter ,text: TabInitShow.text
                ,request: TabInitShow.request,response: TabInitShow.response,contextmenu:get_table_contextmenu(soulTable)
                ,parseData: function (res) {
                    return {
                        "code": res.code,
                        "msg": res.message,
                        "count": res.data.data.total,
                        "data": res.data.data.data
                    };
                }
                , cols: [[
                    {type:'numbers',title:'序号',totalRowText: '合计',fixed:'left'}
                    ,{field:'number',title:'扣款编号',templet: function(d){
                            return '<span class="colorlan" onclick="openPage(\'../payment_neikou/show.php?id='+d.id+'\')">'+d.number+'</span>';
                        }}
                    ,{field: 'money', title: '扣款金额(元)',totalRow: true}
                    ,{field: 'dt', title: '核算日期'}
                    ,{field: 'nei_name', title: '内包协议'}
                    ,{field: 'nei_dutyer', title: '内包责任人'}
                ]]
                , done: function (res) {
                    soulTable.render(this);
                }
            });
            var table_payment_neifu = table.render({
                elem: "#datalist_payment_neifu",url: facade.url(ask_payment_neifu_list),where: {enginid:param_enginid}
                , toolbar: '#toolbarDemo_payment_neifu', page: true,limit:15,totalRow: true
                ,limit:TabInitShow.limit,soulSort: TabInitShow.soulSort,method: TabInitShow.method, overflow: TabInitShow.overflow
                ,defaultToolbar: ['','', '', ''],filter: TabInitShow.filter ,text: TabInitShow.text
                ,request: TabInitShow.request,response: TabInitShow.response,contextmenu:get_table_contextmenu(soulTable)
                ,parseData: function (res) {
                    return {
                        "code": res.code,
                        "msg": res.message,
                        "count": res.data.data.total,
                        "data": res.data.data.data
                    };
                }
                , cols: [[
                    {type:'numbers',title:'序号',totalRowText: '合计',fixed:'left'}
                    ,{field:'number',title:'付款编号',templet: function(d){
                            return '<span class="colorlan" onclick="openPage(\'../payment_neifu/show.php?id='+d.id+'\')">'+d.number+'</span>';
                        }}
                    ,{field: 'enginname', title: '项目名称'}
                    ,{field: 'nei_name', title: '内包协议'}
                    ,{field: 'nei_dutyer', title: '内包责任人'}
                    ,{field: 'zhai', title: '款项摘要'}
                    ,{field: 'incqing', title: '发票情况'}
                    ,{field: 'incdaotype', title: '支付方式'}
                    ,{field: 'money', title: '请款金额(元)',totalRow: true}
                    ,{field: 'accmoney', title: '已支付(元)',totalRow: true}
                    ,{field: 'gonger', title: '付款对象'}
                ]]
                , done: function (res) {
                    soulTable.render(this);
                }
            });
        }





    });



</script>
</body>
</html>




